<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="恢复GaussDB实例">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="TPOPS_GaussDB_00045.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="30-OceanProtect 备份一体机 1.5.0-1.6.0 帮助中心">
<meta name="DC.Publisher" content="20240320">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="TPOPS_GaussDB_00048">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>恢复GaussDB实例</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="TPOPS_GaussDB_00048"></a><a name="TPOPS_GaussDB_00048"></a>

<h1 class="topictitle1">恢复GaussDB实例</h1>
<div><p>当需要对已备份的GaussDB副本进行恢复时，可以参考本节恢复GaussDB至原位置或新位置。</p>
<div class="section"><h4 class="sectiontitle">背景信息</h4><p>支持使用备份副本、复制副本、反向复制副本、级联复制副本、归档副本进行恢复。支持恢复至原位置（复制副本及其归档副本、级联复制副本及其归档副本不支持恢复至原位置）或新位置。</p>
</div>
<div class="section"><h4 class="sectiontitle">前提条件</h4><ul><li>执行恢复前，请确保数据库状态为正常。</li></ul>
<ul><li>执行恢复前，确保代理主机中已启动backUpAgent。启动方法请参见<span>《OceanProtect DataBackup 1.5.0-1.6.0 ProtectAgent安装指南》</span>中的“启动backUpAgent”章节。</li><li>执行恢复前，确保被OLTP OPS纳管的实例已打开监控。打开方法请参见<a href="TPOPS_GaussDB_00012.html">步骤4：在TPOPS管理界面打开实例监控</a>。</li><li>执行恢复前，确保在OLTP OPS管理界面已配置实例的备份默认根路径并执行过备份操作。若未执行过备份操作，需要刷新实例的备份默认根路径。配置实例的备份默认根路径和刷新操作，可参见<a href="TPOPS_GaussDB_00011.html">步骤3：在TPOPS管理界面配置实例的备份默认根路径</a>。</li><li>执行恢复前，确保原实例已被TPOPS纳管。</li><li>执行恢复到新位置时，确保新实例已存在，且新实例与原实例的部署方式、分片数、版本号一致。</li><li>时间点恢复依赖于NTP时钟，生产环境实例所在的各节点需保持同样的时钟源配置。</li><li>恢复前请确保恢复目标实例的空间大于或等于备份副本大小。</li><li>恢复前请确认原实例的副本一致性协议与恢复到的实例的副本一致性协议一致。</li></ul>
</div>
<div class="section"><h4 class="sectiontitle">注意事项</h4><p>当恢复任务失败后，TPOPS实例监控将自动关闭，影响告警信息上报。用户需要手动开启实例监控，开启监控操作请参见<a href="TPOPS_GaussDB_00012.html">步骤4：在TPOPS管理界面打开实例监控</a>。</p>
</div>
<div class="section"><h4 class="sectiontitle">操作步骤</h4><ol><li id="TPOPS_GaussDB_00048__li0198134611381"><span>选择<span class="uicontrol" id="TPOPS_GaussDB_00048__tpops_gaussdb_00044_zh-cn_topic_0000001839142377_uicontrol17911421542">“<span id="TPOPS_GaussDB_00048__tpops_gaussdb_00044_zh-cn_topic_0000001839142377_text2791124220547">数据利用</span> &gt; <span id="TPOPS_GaussDB_00048__tpops_gaussdb_00044_zh-cn_topic_0000001839142377_text137911742135414">副本数据</span> &gt; <span id="TPOPS_GaussDB_00048__tpops_gaussdb_00044_zh-cn_topic_0000001839142377_text102119344153">数据库</span> &gt; GaussDB”</span>。</span><p><div class="note" id="TPOPS_GaussDB_00048__tpops_gaussdb_00044_zh-cn_topic_0000001839142377_note10308124081215"><img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span><div class="notebody"><p id="TPOPS_GaussDB_00048__tpops_gaussdb_00044_zh-cn_topic_0000001839142377_p5308194081211">对于1.5.0版本，请选择<span class="uicontrol" id="TPOPS_GaussDB_00048__tpops_gaussdb_00044_zh-cn_topic_0000001839142377_uicontrol53537515125">“<span id="TPOPS_GaussDB_00048__tpops_gaussdb_00044_zh-cn_topic_0000001839142377_text1035316516128">数据利用</span> &gt; <span id="TPOPS_GaussDB_00048__tpops_gaussdb_00044_zh-cn_topic_0000001839142377_text10353125121211">副本数据</span> &gt; <span id="TPOPS_GaussDB_00048__tpops_gaussdb_00044_zh-cn_topic_0000001839142377_text16353175161210">云平台</span> &gt; GaussDB”</span>。</p>
</div></div>
</p></li><li><span>支持以资源维度或以副本维度查找副本，本节以资源维度为例进行说明。</span><p><p>在<span class="uicontrol">“<span>资源</span>”</span>页签，根据实例名称查找到需要恢复的实例，并单击实例名称。</p>
</p></li><li><span>在<span class="uicontrol">“<span>副本数据</span>”</span>页面，依次选择年、月、天找到副本。</span><p><p>当时间上显示<span><img src="zh-cn_image_0000001839225137.png"></span>，即表示该月、该天存在副本。</p>
</p></li><li><span>找到要恢复的副本，单击其右侧的“<span>更多</span> &gt; <span>恢复</span>”。</span></li><li><span>指定副本或时间点进行恢复。</span><p><ol type="a"><li>指定某个副本或两个副本之间的任意时间点进行恢复。<ul><li>指定某个副本进行恢复<p><span><img class="eddx" src="zh-cn_image_0000001839145189.png"></span></p>
</li><li>指定时间点进行恢复<p><span><img class="eddx" src="zh-cn_image_0000001792505810.png"></span></p>
<p>时间轴上蓝色覆盖区域均可进行时间点恢复，<span><img src="zh-cn_image_0000001792346082.png"></span>表示该时间点存在副本。没有备份日志的时间点无法进行时间点恢复。</p>
</li></ul>
</li><li>恢复至原位置或新位置。<ul><li>恢复至原位置<p>相关参数说明如<a href="#TPOPS_GaussDB_00048__table774016874418">表1</a>所示。</p>

<div class="tablenoborder"><a name="TPOPS_GaussDB_00048__table774016874418"></a><a name="table774016874418"></a><table cellpadding="4" cellspacing="0" summary="" id="TPOPS_GaussDB_00048__table774016874418" frame="border" border="1" rules="all"><caption><b>表1 </b>恢复至原位置参数说明</caption><colgroup><col style="width:24.21%"><col style="width:75.79%"></colgroup><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="24.21%" id="mcps1.3.5.2.5.2.1.2.1.1.2.2.3.1.1"><p>参数</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="75.79%" id="mcps1.3.5.2.5.2.1.2.1.1.2.2.3.1.2"><p>说明</p>
</th>
</tr>
</thead>
<tbody><tr><td class="cellrowborder" valign="top" width="24.21%" headers="mcps1.3.5.2.5.2.1.2.1.1.2.2.3.1.1 "><p><span>位置</span></p>
</td>
<td class="cellrowborder" valign="top" width="75.79%" headers="mcps1.3.5.2.5.2.1.2.1.1.2.2.3.1.2 "><p>实例所在的位置，用户无法修改。</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li>恢复至新位置<div class="p">填写<span class="uicontrol">“基本信息”</span>，参数说明如<a href="#TPOPS_GaussDB_00048__table1799312512502">表2</a>所示。
<div class="tablenoborder"><a name="TPOPS_GaussDB_00048__table1799312512502"></a><a name="table1799312512502"></a><table cellpadding="4" cellspacing="0" summary="" id="TPOPS_GaussDB_00048__table1799312512502" frame="border" border="1" rules="all"><caption><b>表2 </b>基本信息参数说明</caption><colgroup><col style="width:11.62%"><col style="width:88.38000000000001%"></colgroup><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="11.62%" id="mcps1.3.5.2.5.2.1.2.1.2.1.3.2.3.1.1"><p>参数</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="88.38000000000001%" id="mcps1.3.5.2.5.2.1.2.1.2.1.3.2.3.1.2"><p>说明</p>
</th>
</tr>
</thead>
<tbody><tr><td class="cellrowborder" valign="top" width="11.62%" headers="mcps1.3.5.2.5.2.1.2.1.2.1.3.2.3.1.1 "><p><span>目标项目</span></p>
</td>
<td class="cellrowborder" valign="top" width="88.38000000000001%" headers="mcps1.3.5.2.5.2.1.2.1.2.1.3.2.3.1.2 "><p>填写恢复到新位置的项目。目标项目只能与副本关联的实例在同一项目。</p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="11.62%" headers="mcps1.3.5.2.5.2.1.2.1.2.1.3.2.3.1.1 "><p><span style="color:#6C7280;">目标实例</span></p>
</td>
<td class="cellrowborder" valign="top" width="88.38000000000001%" headers="mcps1.3.5.2.5.2.1.2.1.2.1.3.2.3.1.2 "><p>填写恢复到新位置的实例名称。</p>
<div class="note"><span class="notetitle"> 说明： </span><div class="notebody"><ul><li>恢复过程中，系统将清理目标位置的归档日志。</li></ul>
<ul><li>恢复前请确保恢复目标实例的空间大于或等于备份副本大小。</li><li><span style="color:#282B33;">恢复将覆盖目标位置的数据。</span></li></ul>
</div></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</li></ul>
</li><li>单击<span class="uicontrol">“确定”</span>。</li></ol>
</p></li><li><span>单击<span class="uicontrol">“确定”</span>。</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题：</strong> <a href="TPOPS_GaussDB_00045.html">恢复</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>